package com.test.dao;

import java.util.Collection;
import java.util.Map;

public interface Dao<T, R> {

	public DBOperationResult add(final T newObject);

	public DBOperationResult update(final T object);

	public DBOperationResult remove(final T object);

	public Collection<T> search(final Map<String, Collection<? extends Object>> propertyCriteriaMap);

	public T load(final R pk);
}
